package org.jeecg.modules.wlhy.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: hy_carrier_bill
 * @Author: jeecg-boot
 * @Date:   2021-03-15
 * @Version: V1.0
 */
@Data
@TableName("hy_carrier_bill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_carrier_bill对象", description="hy_carrier_bill")
public class HyCarrierBill implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	@ApiModelProperty(value = "billId")
	private String billId;
	/**流水号*/
	@Excel(name = "流水号", width = 15)
    @ApiModelProperty(value = "流水号")
    private String billNum;
	/**单据类型(1支付运费 2提现)*/
	@Excel(name = "单据类型", width = 15, dicCode = "bill_type")
	@Dict(dicCode = "bill_type")
    @ApiModelProperty(value = "单据类型(1支付运费2提现)")
    private String billType;
	/**订单id*/
	@Excel(name = "订单", width = 15, dictTable = "hy_order", dicText = "order_num", dicCode = "id")
	@Dict(dictTable = "hy_order", dicText = "order_num", dicCode = "id")
    @ApiModelProperty(value = "订单id")
    private String orderId;
	/**运单id*/
	@Excel(name = "运单", width = 15, dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
	@Dict(dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
    @ApiModelProperty(value = "运单id")
    private String shippingId;
	/**公司id*/
	@Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
	@Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司id")
    private String companyId;
	/**司机id*/
	@Excel(name = "司机", width = 15, dictTable = "hy_driver", dicText = "driver_name", dicCode = "id")
	@Dict(dictTable = "hy_driver", dicText = "driver_name", dicCode = "id")
    @ApiModelProperty(value = "司机id")
    private String driverId;
	/**代收人*/
	@Excel(name = "代收人", width = 15, dictTable = "hy_carrier", dicText = "carrier_name", dicCode = "id")
	@Dict(dictTable = "hy_carrier", dicText = "carrier_name", dicCode = "id")
    @ApiModelProperty(value = "代收人id")
    private String carrierId;

	/**支付状态:返回来源*/
	@Excel(name = "支付返回来源", width = 15)
	@ApiModelProperty(value = "支付状态:返回来源")
	private String respSource;
	/**支付状态:返回码*/
	@Excel(name = "支付返回码", width = 15)
	@ApiModelProperty(value = "支付状态:返回码")
	private String respCode;
	/**支付状态:返回信息*/
	@Excel(name = "支付返回信息", width = 15)
	@ApiModelProperty(value = "支付状态:返回信息")
	private String respInfo;

	/**借方账号*/
	@Excel(name = "借方账号", width = 15)
    @ApiModelProperty(value = "借方账号")
    private String dbaccno;
	/**借方多级账簿号*/
	@Excel(name = "借方多级账簿号", width = 15)
    @ApiModelProperty(value = "借方多级账簿号")
    private String dblogaccno;
	/**借方名称*/
	@Excel(name = "借方名称", width = 15)
    @ApiModelProperty(value = "借方名称")
    private String dbaccname;

	private String dbProv;
	private String crProv;

	/**贷方账号*/
	@Excel(name = "贷方账号", width = 15)
    @ApiModelProperty(value = "贷方账号")
    private String craccno;
	/**贷方多级账簿号*/
	@Excel(name = "贷方多级账簿号", width = 15)
    @ApiModelProperty(value = "贷方多级账簿号")
    private String crlogaccno;
	/**贷方名称*/
	@Excel(name = "贷方名称", width = 15)
    @ApiModelProperty(value = "贷方名称")
    private String craccname;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
//	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private String delFlag;

	@ApiModelProperty(value = "支付状态:返回扩展信息")
	private String rxtInfo;

	@ApiModelProperty(value = "贷方银行代码")
	private String crBankCode;

	@ApiModelProperty(value = "支付渠道(1农行支付 5线下支付 6浦发)")
	@Dict(dicCode = "pay_channel")
	private String payChannel;

	private String frontFlowNo;
}
